package com.example.demo.domain.dto;

/**
 * 返回code枚举值
 *
 * @author renliang
 */

public enum ResultCode {
    /**
     * 成功
     */
    SUCCESS(200, "操作成功"),
    /**
     * 提示信息
     */
    WARN(300, "提示信息"),
    /**
     *
     */
    UN_BIND(301, "未绑定手机号"),
    /**
     * 系统服务异常
     */
    ERROR(500, "系统服务异常"),


    INVALID_REFRESH_TOKEN(600, "无效的refresh-token");

    private final Integer code;
    private final String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
